package com.young.springdemo.service.factory;

import javax.annotation.PostConstruct;

//调试时,取消对conpoment的注解
//@Component
public class testFactory {

//    @PostConstruct
    public void testFactory(){
        Fruit apple = FruitFactory.getFruit("apple");
        apple.getName();
        apple.getHealty();
    }
}
